package com.kust.smarthome.web.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("device_state")
@ApiModel("设备状态表")
public class DeviceState implements Serializable {

    public static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "id", required = true)
    private Integer id;


    @TableField("is_update")
    @ApiModelProperty(value = "是否被app查看 1为被查看过,2为没查看过", required = true)
    private Integer isUpdate;

    @TableField("type_id")
    @ApiModelProperty(value = "设备类型,1-8分别对应一种设备", required = true)
    private Integer typeId;

    @TableField("device_id")
    @ApiModelProperty(value = "设备id,不同类型设备可能会出现重复id,加上type_id做区分", required = true)
    private Integer deviceId;

    @TableField("operation")
    @ApiModelProperty(value = "设备操作", required = true)
    private String operation;


}
